#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QHBoxLayout>
#include <QMainWindow>
#include <QPushButton>
#include <QThread>

namespace Ui {
class MainWindow;
}


class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void onBtnStartClicked();
    void onBtnStopClicked();

private:
    Ui::MainWindow *ui;

    bool mIsStopSendMsg;

    QPushButton *m_pPBStart;
    QPushButton *m_pPBStop;

    QHBoxLayout *m_pHBLGlobal;
    QThread *m_pMsgProcessThread;
};

#endif // MAINWINDOW_H
